<header class="header">
    <!-- 购物车 -->
    <div data-ng-include=" 'views/cart.html' "></div>

    <!--main navigation-->
    <nav class="navbar navbar-default navbar-static-top sticky-header">
        <div class="container">
            <div id="navbar" class="navbar-collapse collapse">
                <ul class="nav navbar-nav navbar-right">
                    <li ui-sref-active="active">
                        <a ui-sref="app.orderCash">点餐收银</a>
                    </li>
                    <li ui-sref-active="active">
                        <a ui-sref="app.orderForm">订单管理</a>
                    </li>
                    <li ui-sref-active="active">
                        <a ui-sref="app.member">会员管理</a>
                    </li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle js-activated" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">店务管理 <span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a ui-sref="app.shopSet">店铺设置</a></li>
                            <li><a ui-sref="app.shopMenu">菜单管理</a></li>
                        </ul>
                    </li>
                    <li ui-sref-active="active">
                        <a href="javascript:void(0)" data-toggle="offcanvas" data-target="#cartNavmenu" data-canvas="body" class="cartreset">
                        <h5><i class="ion-ios-cart"></i>购物车</h5></a>
                    </li>
                    <li><a ui-sref="login">登录</a></li>
                </ul>
            </div><!--/.nav-collapse -->
        </div><!--/.container-fluid -->
    </nav>
</header>
<script src="assets/js/template-custom.js" type="text/javascript"></script>
<script>
    $(".has-sub>a").click(function () {
        $(this).parent().siblings().find(".sub-menu").slideUp();
        $(this).parent().find(".sub-menu").slideToggle();
    })
</script>